package SoftwarePrinciple.OpenClosePrinciple;

/**
 * @author: Themberfue
 * @date: 2025/8/7 11:24
 * @description:
 */
// 圆形实现类
public class Circle extends Shape {
    private double radius;

    public Circle(double radius) {
        this.radius = radius;
    }

    @Override
    public double calculateArea() {
        return Math.PI * radius * radius;
    }
}

